<div class="block" id="block-lists">
          <div class="secondary-navigation">
            <ul>
              <li class="first active "><a href="#block-tables">咨询</a></li>
            </ul>
            <div class="clear">   </div>
          </div>
          <div class="content">
            <h2 class="title">咨询提交后，管理员将以是邮件，QQ或电话的形式回访</h2>
            
<% form_for(@contact ,:html =>{:class=>'form'}) do |f| %>
  <%= f.error_messages %>
    <%= f.hidden_field :user_id %>
  <%= f.hidden_field :ipaddr %>
 <table class="table">
    <tbody>
      
        <tr class="odd">
          <td> 姓名： </td><td> <%= f.text_field :name %> </td>
        </tr>
            <tr class="odd">
          <td> 电话 ：</td><td>  <%= f.text_field :phone %></td>
        </tr>
            <tr class="odd">
          <td> 邮件： </td><td>    <%= f.text_field :email %></td>
        </tr>
        <tr class="odd">
          <td> QQ号： </td><td>        <%= f.text_field :qq %></td>
        </tr>  
          <tr class="even">
          <td> 咨询： </td><td>      <%= f.text_area :content ,:size =>'30x6' %>
</td>
        </tr>
      <tr class="even">
          <td> </td><td> <input type="submit" value="提交" name="commit" id="search_submit" class="button"/></td>
        </tr>
   
    </tbody>
  </table>
<% end %>
          </div>                               
        </div>